# 使用numpy模块生成随机数
import numpy as np

# 随机生成[1,10)的长度为n的分数数组arrs
def arrs(n):
    arr1 = list(np.random.randint(1, 10, size=n))
    arr2 = list(np.random.randint(1, 10, size=n-2))
    return [arr1,arr2]

#测试生成的数据样例
if __name__ == '__main__':
    for i in range(5):
        print(arrs(5))

"""
数据示例：
        [[6, 7, 6, 5, 4], [6, 4, 7]]
        [[2, 2, 3, 8, 1], [5, 4, 3]]
        [[7, 4, 7, 1, 1], [9, 4, 5]]
        [[5, 9, 4, 8, 8], [2, 4, 3]]
        [[6, 2, 2, 4, 4], [9, 8, 7]]
"""